package com.cangsan.erhai.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

/**
 *
 * @TableName tab_order
 */
@TableName(value ="tab_order")
@Data
public class TabOrder implements Serializable {
    /**
     *
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     *
     */
    @TableField(value = "open_id")
    private String openId;


    /**
     * 手机号码
     */
    @TableField(value = "phonenumber")
    private String phonenumber;


    /**
     * 用户昵称
     */
    @TableField(value = "nick_name")
    private String nickName;

    /**
     * 创建时间
     */
    @TableField(value = "create_time" ,fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd hh:mm:ss", timezone = "GMT+8")
    private Date createTime;

    /**
     * 更新时间
     */
    @TableField(value = "update_time",fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;

    /**
     *
     */
    @TableField(value = "description")
    private String description;

    /**
     *
     */
    @TableField(value = "out_trade_no")
    private String outTradeNo;

    /**
     *
     */
    @TableField(value = "transaction_id")
    private String transactionId;

    /**
     *
     */
    @TableField(value = "total_fee")
    private Integer totalFee;

    /**
     *
     */
    @TableField(value = "pay_time")
    private Date payTime;

    @TableField(value = "vip_goods_id")
    private Long vipGoodsId;

    /**
     *
     */
    @TableField(value = "pay_status")
    private Integer payStatus;


    @TableLogic // 标记为逻辑删除字段
    private Integer isDel;
    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}
